#
# Copyright Soramitsu Co., Ltd. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#

addtest(router_test
    router_test.cpp
    )
target_link_libraries(router_test
    p2p_router
    p2p_multiaddress
    p2p_peer_id
    )


addtest(transport_manager_test
    transport_manager_test.cpp
    )
target_link_libraries(transport_manager_test
    p2p_transport_manager
    p2p_multiaddress
    p2p_literals
    )


addtest(connection_manager_test
    connection_manager_test.cpp
    )
target_link_libraries(connection_manager_test
    p2p_connection_manager
    p2p_multiaddress
    p2p_address_repository
    p2p_peer_id
    p2p_testutil
    p2p_peer_errors
    p2p_literals
    )


addtest(listener_manager_test
    listener_manager_test.cpp
    )
target_link_libraries(listener_manager_test
    p2p_listener_manager
    p2p_literals
    )


addtest(dialer_test
    dialer_test.cpp
    )
target_link_libraries(dialer_test
    p2p_dialer
    p2p_literals
    p2p_async_testutil
    )
